package com.sgb.goods.widget.pop.adapter;

import android.content.Context;

import com.sgb.goods.BR;
import com.sgb.goods.R;
import com.sgb.goods.entity.CommonStAttrEntity;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

/**
 * 描述：商砼属性弹窗2级数据列表适配器
 *
 * @author qiangHeNoo
 * <p>
 * 时间：2021.12.09
 */
public class StAttributeChildAdapter extends BaseRecycleAdapter<CommonStAttrEntity.ChildListBean> {

    public StAttributeChildAdapter(Context context, List<CommonStAttrEntity.ChildListBean> data) {
        super(context, R.layout.goods_attribute_child, data);
    }

    @Override
    public void convert(ItemViewHolder holder, final CommonStAttrEntity.ChildListBean entity) {
        holder.setBinding(BR.viewModel, entity);
        holder.itemView.setClickable(true);
    }

}
